(function($, undefined) {
  $.cha.ns("s3");

  /**
   * @constructor
   * @param {$.cha.EventBus}
   */
  $.cha.s3.Navigator = function(eventBus) {
    this.eventBus;
  };

  $.cha.s3.Navigator.prototype.bind = function() {
    $(window).bind("hashchange.s3navigation", function() {
      var prefix = this.location.hash.replace("#", "");
      eventBus.trigger("changePrefix", prefix);
    });
  };
  $.cha.s3.Navigator.prototype.unbind = function() {
    $(window).unbind("hashchange.s3navigation");
  };

}(jQuery));